<?php
class User extends AppModel {

	var $name = 'User';
	var $hasMany = 'Appointment';
	var $belongsTo = array(
			'Role' => array('className' => 'Role',
								'foreignKey' => 'role_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			)
	);
	var $validate = array(
		'username' => array('alphanumeric'),
		'document_number' => array('numeric')
	);
}
?>